package com.pisolution.scheduler.datasource.instance;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * 二值类型映射.
 *
 * @author sora
 * @version 0.1.0
 */
public enum Flag {
    NO(0),
    YES(1);

    // -------------------------------------------------------------------------------------------------

    /** 当前标识在类型集合中的序号. */
    @EnumValue
    private final int code;

    // -------------------------------------------------------------------------------------------------
    //  初始化
    // -------------------------------------------------------------------------------------------------

    Flag(final int code) {
        this.code = code;
    }
}
